package com.congee02.springframework.beans.factory.support;

import com.congee02.springframework.beans.BeansException;
import com.congee02.springframework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * 实例化策略，为 {@link AbstractAutowireCapableBeanFactory} 的实现提供支持
 */
public interface InstantiationStrategy {

    @SuppressWarnings("rawtypes")
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;

}
